Nullable Types unity

71

Nullable Types unity -

int i = null; //Not nullable, syntax error
int? j = null; //Nullable!
 
bool b = null; //Not nullable, syntax error
bool? c = null;//Nullable!
 
Vector3 v = null;//Not nullable, syntax error
Vector3? w = null;//Nullable!

Comments

Submit
0 Comments